#include "State.h"

State::State(void){}
State::~State(void){}

void State::setActiveState(bool value)
{
	_update = value; 
	_draw = value; 
	_controlState->setUpdateState(value); 
	if (value) 
		initialize();
	else
		shutdown();
}

bool State::isActive()
{ 
	if ( _update && _draw && _controlState->updateInput()) 
		return true; 
	return false; 
}